﻿import QtQuick 2.7
import QtQuick.Window 2.2

import "Poke"
import "Player"
import "Process"
//import "global.js" as GlobalConst


Window {
    id: win
    signal signal1()

    function appendGameText(text) {
        console.debug(text)
    }

    Image {
        id: i1
        width: 500
        height: 500
        sourceSize.width: 100
        sourceSize.height: 100

        source: "bd.bmp"
    }

    Image {
        id: i2
        width: 500
        height: 500
        x: 500
        source: "bd.bmp"
    }

    Component.onCompleted: {
        signal1.connect(appendGameText)
        signal1()
        win.showMaximized()
        if(i1.data === i2.data)
            console.debug("yes!")
        else
            console.debug("no!")

        if(i1.source === i2.source)
            console.debug("yes!")
        else
            console.debug("no!")

        var var2 = new Object({"x":10,"y":"str"})
        var var3 = {"x":10,"y":"str"}
        console.debug(var2["y"])
        console.debug(var3["y"])
        var var4 = {"x":10,"y":"str","obj":{"x":100,"y":null}}

        console.debug(var4["obj"].x)

    }

}
